]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/network: Use connection name with hidden AP
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 29 Aug 2023 23:47:00 +0000 (01:47 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 31 Aug 2023 11:54:51 +0000 (11:54 +0000)
When connected to an OWE transition network, NetworkManager
reports the connected API with a hidden SSID.

Handle this by using the active connection's name before
ultimately falling back to the device name.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6918

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2927>

js/ui/status/network.js

index e0f44d0f8840421fd56a2bfacdb1767394a425cb..324ad4f55351bd6730921fe607d87b5530cbc7da 100644 (file)
@@ -1166,6 +1166,11 @@ const NMWirelessDeviceItem = GObject.registerClass({
         if (ssid)
             return ssidToLabel(ssid);
 
+        // Use connection name when connected to hidden AP
+        const {activeConnection} = this._device;
+        if (activeConnection)
+            return activeConnection.connection.get_id();
+
         return this._deviceName;
     }